package com.cloudlead.dictionaryAction.action;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.common.lang.persistence.EasyuiGridData;
import com.cloudlead.common.worker.action.impl.AbstractActionFactory;
import com.cloudlead.common.worker.annotation.Action;
import com.cloudlead.common.worker.annotation.Order;
import com.cloudlead.dictionaryAction.BusinessModules;
import com.cloudlead.dictionaryAction.service.AccountBillSer;
import com.cloudlead.dictionaryService.AccountBillService;
import com.cloudlead.dictionaryService.vo.AccountBillRebVo;
import com.cloudlead.dictionaryService.vo.AccountBillVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * Created by Will on 2016/1/12.
 */
@Controller
public class AccountBillActionFactory extends AbstractActionFactory implements AccountBillService {
    public AccountBillActionFactory() {
        super(BusinessModules.AccountBill);
    }
    @Autowired
    AccountBillSer accountBillSer;
    @Override
    @Action
    @Order(1)
    @Label("账单查询")
    public AccountBillRebVo findAllBillService(AccountBillVo accountBillVo,@Label("每页条数")int rows,@Label("页面")int page) {
        return accountBillSer.findAllAccountBill(accountBillVo,rows,page);
    }

    @Override
    @Action
    @Order(1)
    @Label("公司列表")
    public List findBaseCompany(@Label("身份")String identity) {
        return  accountBillSer.findBaseCompany(identity);
    }
}
